package com.afc.struts.test.persons;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.afc.struts.Action;
import com.afc.struts.test.data.PersonDao;

public class PersonsRemoveAction implements Action<PersonsForm>
{
  @Override
  public String execute(PersonsForm anActionForm, HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletException
  {
    PersonDao.getInstance().delete(anActionForm.getSelectedPersonId());
    return null;
  }
}
